package com.aku.service.impl;

import com.aku.mapper.BorrowMapper;
import com.aku.service.BorrowService;
import com.aku.vo.ShowBorrow;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BorrowServiceImpl implements BorrowService {

    @Resource
    private BorrowMapper borrowMapper;

    @Override
    public List<ShowBorrow> searchBorrowByUsername(String username) {
        List<ShowBorrow> borrowList = borrowMapper.selectStuBorrowByUsername(username);
        return borrowList;
    }

    @Override
    public List<ShowBorrow> selectAllBorrow() {
        List<ShowBorrow> borrowList = borrowMapper.selectAdminBorrow();
        return borrowList;
    }
}
